import { Router } from "express";
import { authMiddleware } from "../utils/jwt.js";
import { list, create, update, remove } from "../controller/blogController.js";

const router = Router();

router
  .get("/list", authMiddleware, list)
  .post("/create", authMiddleware, create)
  .put("/update", authMiddleware, update)
  .delete("/delete", authMiddleware, remove);

export default router;

